import axios from "../utils/request.js"
export default {
    getCategory(data={}){
        return axios({
            url: "/api/product/getCategory",
            method: "POST",
            data: data
        })
    },

    getAllProduct(data={}){
        return axios({
            url: "/api/product/getAllProduct",
            method: "POST",
            data: data
        })
    },
	
	getProductByCategory(data={}){
	    return axios({
	        url: "/api/product/getProductByCategory",
	        method: "POST",
	        data: data
	    })
	},
	
	getProductBySearch(data={}){
	    return axios({
	        url: "/api/product/getProductBySearch",
	        method: "POST",
	        data: data
	    })
	}
}